<?php
// This file is part of MOOSISCA Report for Moodle
 
 
/**
 * Sets the access capabilities for the MOOSISCA Report
 *
 * @package   admin-report-moosisca
 * @copyright 2010 Laberinto.pro
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

$report_moosisca_capabilities = array(
    'report/moosisca:managecategories' => array(
        'captype'      => 'write',
        'contextlevel' => CONTEXT_SYSTEM,
        'legacy' => array(
            'admin' => CAP_ALLOW
        )
    ),
    'report/moosisca:newspacerequest' => array(
        'captype'      => 'write',
        'contextlevel' => CONTEXT_SYSTEM,
        'legacy' => array(
            'admin' => CAP_ALLOW,
            'coursecreator' => CAP_ALLOW
        )
    ),
    'report/moosisca:courseevaluationrequest' => array(
        'captype'      => 'write',
        'contextlevel' => CONTEXT_SYSTEM,
        'legacy' => array(
            'admin' => CAP_ALLOW,
            'coursecreator' => CAP_ALLOW
        )
    ),
    'report/moosisca:unapprovedcourses' => array(
        'captype'      => 'write',
        'contextlevel' => CONTEXT_SYSTEM,
        'legacy' => array(
            'admin' => CAP_ALLOW
        )
    ),
    'report/moosisca:approvedcourses' => array(
        'captype'      => 'write',
        'contextlevel' => CONTEXT_SYSTEM,
        'legacy' => array(
            'admin' => CAP_ALLOW
        )
    ),
    'report/moosisca:workflow' => array(
        'captype'      => 'read',
        'contextlevel' => CONTEXT_SYSTEM,
        'legacy' => array(
            'admin' => CAP_ALLOW,
            'coursecreator' => CAP_ALLOW
        )
    ),
    'report/moosisca:viewallworkflow' => array(
        'captype'      => 'read',
        'contextlevel' => CONTEXT_SYSTEM,
        'legacy' => array(
            'admin' => CAP_ALLOW
        )
    )
);
  
?>
